var utils = require("../../utils/utils");
var time = require("../../utils/time");
var pointMap = {
  任务: {
    points: [
      //prettier-ignore
      648, 2161, 864, 2356,
    ],
    size: {
      x: 1080,
      y: 2340,
    },
  },
};
function toTask() {
  console.log("toTask");
  utils.clickPointMap(pointMap["任务"]);
  sleep(utils.getRandom(1.5, 2, 1000));
  var content = "开心收下";
  var UIText = utils.existsTextStartsWith(content);
  if (UIText) {
    utils.clickUIText(UIText);
    sleep(utils.getRandom(1.5, 2, 1000));
  }
}
exports.storage = utils.getStorage(time.str("YYYY-MM-DD") + "爆爽短剧");
exports.toTask = toTask;
